package com.dibang.app.operation.provider;

import com.dibang.app.mvp.abs.AbsProvider;
import com.dibang.app.mvp.abs.BeanFactory;
import com.dibang.app.operation.model.abs.LoginSmsMobileModel;
import com.dibang.app.operation.model.impl.LoginSmsMobileModelImpl;
import com.dibang.app.operation.presenter.abs.LoginSmsMobilePresenter;
import com.dibang.app.operation.presenter.impl.LoginSmsMobilePresenterImpl;
import com.dibang.app.operation.view.abs.LoginSmsMobileView;
import com.dibang.app.operation.view.impl.LoginSmsMobileViewImpl;

/**
 * Created by wxl on 2019/7/19.
 */

public class LoginSmsMobileProImpl extends AbsProvider<LoginSmsMobileView,LoginSmsMobilePresenter,LoginSmsMobileModel> {
    @Override
    public LoginSmsMobileView getView() {
        return BeanFactory.getInstance(LoginSmsMobileViewImpl.class);
    }

    @Override
    public LoginSmsMobilePresenter getPresenter() {
        return BeanFactory.getInstance(LoginSmsMobilePresenterImpl.class);
    }

    @Override
    public LoginSmsMobileModel getModel() {
        return BeanFactory.getInstance(LoginSmsMobileModelImpl.class);
    }

    @Override
    public void onDestroy() {
        BeanFactory.remove(LoginSmsMobileViewImpl.class,LoginSmsMobilePresenterImpl.class,LoginSmsMobileModelImpl.class);
    }
}
